import { defineStore } from "pinia";
import { ref } from "vue";

export const useListStore = defineStore('list',() => {
    const list = ref([1,2,3]);
    const addItem = (item) => {
        list.value.push(item)
    }
    return { list, addItem }
})